﻿<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html lang="zh-cn">
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<head>
<meta charset="UTF-8">
<title>首页</title>
</head>
<body>
	<!-- 引入头部 -->
	<jsp:include page="header.jsp"></jsp:include>
	<!-- 轮播图 -->
	<div class="am-slider am-slider-default"
		data-am-flexslider="{playAfterPaused: 8000}">
		<ul class="am-slides">
			<c:forEach items="${ban }" var="ban">
				<li><a href="${ban.link }"><img src="${ban.url }"
						alt="${ban.title }"></a></li>
			</c:forEach>
		</ul>
	</div>
	<!-- 轮播图  结束-->

	<section class="index-section">
		<div>
			<span></span> <span></span>
		</div>
		<div class="index-content">
			<section class="index-content-section-first">
				<div>
					<img src="images/sectionbanner.png" alt="">
				</div>
			</section>
			<section class="index-content-section-second">
				<div>
					<div class="index-auto">
						<article>公司介绍</article>
						<h6>COMPANY INTRODUCTION</h6>
						<main>${com.detail }</main>
						<a class="index-button" href="AboutServlet?method=comAllList">查看详情</a>
					</div>
				</div>
			</section>
		</div>
	</section>

	<!-- <section class="index-product">
		<main>
		<ul>
			<li class="index-active"><a href="#"></a></li>
			<li><a href="#"></a></li>
			<li><a href="#"></a></li>
			<li><a href="#"></a></li>
		</ul>
		</main>
		<main></main>
		<main></main>
	</section> -->
	<div class="copyrights">
		Collect from <a href="http://www.cssmoban.com/">网页模板</a>
	</div>
	<section class="index-margin-bottom">
		<div class="index-morecase">
			<span></span> <a href="FurnServlet?method=toProduct">MORE &#62;
				&#62;</a>
		</div>
		<div class="index-content">
			<div class="product-list">
				<c:forEach items="${arrayList }" var="tui">
					<div class="am-u-sm-6 am-u-md-6 am-u-lg-4">
						<a href="FurnServlet?method=getDetails&id=${tui.id }"> <img
							src="${tui.picurl }" /> <span>${tui.proname }</span>
						</a>
					</div>
				</c:forEach>
			</div>
		</div>
	</section>

	<section class="index-margin-bottom">
		<div class="index-morecase">
			<span></span> <a href="NewsServlet?method=toArticleList">MORE
				&#62; &#62;</a>
		</div>
		<div class="index-content">
			<div class="new-index" style="height: 400px">
				<ul>
					<li><img src="images/productlogo.png" alt=""></li>
				</ul>
				<ul>
					<c:forEach items="${newList }" var="news">
						<li><a
							href="NewsServlet?method=toArticleListContent&id=${news.id }"><h3>${news.title }</h3>
								<article>${news.content }</article> </a></li>
					</c:forEach>
				</ul>
			</div>
		</div>
	</section>
	<!-- 引入脚部 -->
	<jsp:include page="footer.jsp"></jsp:include>
</body>
</html>